package com.ruoyi.electricity.service;

import java.util.Date;
import java.util.List;

import com.ruoyi.electricity.domain.DTO.ElectricityByArea;
import com.ruoyi.electricity.domain.DTO.RunStatusDeviceDetection;
import com.ruoyi.electricity.domain.ElectricityData;
import com.ruoyi.electricity.domain.TElectricityData;

/**
 * 用电Service接口
 * 
 * @author ruoyi
 * @date 2023-10-28
 */
public interface ITElectricityDataService 
{
    /**
     * 查询用电
     * 
     * @param id 用电ID
     * @return 用电
     */
    public TElectricityData selectTElectricityDataById(String id);

    /**
     * 查询用电列表
     * 
     * @param tElectricityData 用电
     * @return 用电集合
     */
    public List<TElectricityData> selectTElectricityDataList(TElectricityData tElectricityData);

    /**
     * 新增用电
     * 
     * @param tElectricityData 用电
     * @return 结果
     */
    public int insertTElectricityData(TElectricityData tElectricityData);

    /**
     * 修改用电
     * 
     * @param tElectricityData 用电
     * @return 结果
     */
    public int updateTElectricityData(TElectricityData tElectricityData);

    /**
     * 批量删除用电
     * 
     * @param ids 需要删除的用电ID
     * @return 结果
     */
    public int deleteTElectricityDataByIds(String[] ids);

    /**
     * 删除用电信息
     * 
     * @param id 用电ID
     * @return 结果
     */
    public int deleteTElectricityDataById(String id);

    List<ElectricityByArea> getElectricityByAreaWithinTime(Date startTime, Date endTime);

    List<RunStatusDeviceDetection> getElectricityData();

}
